package com.cl.blog.web.client.home;

import com.cl.blog.annotation.Login;
import com.cl.blog.common.Result;
import com.cl.blog.entity.BTag;
import com.cl.blog.service.BTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author 付
 * @Date 2024-03-31 19:03
 * @Version 1.0
 * @description
 * @since 1.0
 */
@RestController
@RequestMapping("/user/tag")
public class TagController {
	@Autowired
	BTagService bTagService;

	@GetMapping("/list")
	@Login
	public Result list(){
		List<BTag> list = bTagService.list();
		return Result.success(list);
	}
}
